<div class="content article-list">
{{ $paginator := .Paginate (where .Data.Pages "Section" "posts") }}
{{ range $paginator.Pages }}
<article class="article article-type-post" itemscope="" itemtype="http://schema.org/BlogPosting">
  <div class="article-header">
    <h1 itemprop="name">
      <a class="article-title" href="{{ .Permalink }}">{{ .Title }}</a>
    </h1>
  </div
  ><p class="article-meta">
    {{ partial "post/date.html" .}}
    {{ partial "post/category.html" .}}
    {{ partial "post/tags.html" .}}
    {{ partial "post/readtime.html" .}}
  </p>
</article>
{{end}}
</div>
{{ if gt $paginator.TotalPages 1}}
  <nav class="bar bar-footer clearfix" data-stick-bottom>
    <div class="bar-inner">
        <ul class="pager pull-left">
          {{ if $paginator.HasPrev }}
            <li class="prev">
                <a href="{{ $paginator.Prev.URL  }}">
                    <i class="icon icon-angle-left"></i>
                    上一页
                </a>
            </li>
          {{ else }}
            <li class="prev disabled">
                <a href="javascript:;">
                    <i class="icon icon-angle-left"></i>
                    上一页
                </a>
            </li>
          {{ end }}
          {{ if $paginator.HasNext }}
            <li class="next">
              <a href="{{ $paginator.Next.URL }}">
                      下一页
                  <i class="icon icon-angle-right"></i>
              </a>
            </li>
          {{ else }}
            <li class="next disabled">
              <a href="javascript:;">
                  下一页
                  <i class="icon icon-angle-right"></i>                    
              </a>
            </li>
          {{ end }}
        </ul>
      <div class="total-article bar-right">Page {{ $paginator.PageNumber }} Of {{ $paginator.TotalPages }}</div>
    </div>
  </nav>
{{ end }}